package com.linjacy.container.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;

import javax.validation.constraints.*;

/**
 * 
 * 
 * @author linjacy
 * @email 939886352@gmail.com
 * @date 2021-01-03 16:04:54
 */
@Data
@TableName("container_user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@TableId
	private Long tableid;

	private Long uid;
	private Integer isOrder;
	/**
	 * 用户名
	 */
	@NotNull(message = "用户名不能为空")
	private String uname;
	/**
	 * 地址
	 */
	@Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,}$",message = "地址信息不正确")
	private String address;
	/**
	 * 集装箱id
	 */
	private Long cid;
	/**
	 * 电话
	 */
	@Pattern(regexp = "^1[0-9]{10}$",message = "电话号码不规范")
	private String phoneNum;
	/**
	 * 邮箱
	 */
	@Email
	private String email;

}
